/* ---------------------------------------------------------------------------
 * This software is in the public domain, furnished "as is", without technical
 * support, and with no warranty, express or implied, as to its usefulness for
 * any purpose.
 *
 * Types.h
 *
 * Author: Guillaume Boissé
 * -------------------------------------------------------------------------*/

#ifndef _JSP_TYPES_H
#define _JSP_TYPES_H

#include <cstdlib>

namespace jsp
{

typedef char                s8;     ///< 1 byte
typedef unsigned char       u8;     ///< 1 byte
typedef short               s16;    ///< 2 bytes
typedef unsigned short      u16;    ///< 2 bytes
typedef int                 s32;    ///< 4 bytes
typedef unsigned int        u32;    ///< 4 bytes
typedef long long           s64;    ///< 8 bytes
typedef unsigned long long  u64;    ///< 8 bytes
typedef float               f32;    ///< 4 bytes (floating-point number)
typedef double              f64;    ///< 8 bytes (floating-point number)

typedef enum
{
    eError_Ok = 0,
    eError_Fail
}
error_t;

} // namespace jsp

#endif // _JSP_TYPES_H
